<!-- 16.Community_post_list_page -->
<div id="page-community">
  <header class="community-header">
    <div class="container">
      <nav class="sub-nav">
        {{breadcrumbs}}
        <div class="community-search">
          {{search}}
        </div>
      </nav>
      <h2 class="community-header-title">
        コミュニティの全ての投稿
      </h2>
    </div>
  </header>
<div class="container">
<div class="topic-header">
  <span class="topic-filters">
    <span class="dropdown">
      <span class="dropdown-toggle">
        {{current_sorter.label}}
      </span>
      <span class="dropdown-menu" role="menu">
        {{#each sorters}}
          <a href="{{url}}" aria-selected="{{selected}}" role="menuitem">
            {{name}}
          </a>
        {{/each}}
      </span>
    </span>
  </span>
</div>

    <table class="thread-list">
      <thead>
        <tr>
          <th>スレッド</th>
          <th></th>
          <th></th>
        </tr>
      </thead>
      <tbody>
        {{#each posts}}
        <tr>
          <td>
            <a href="{{url}}" title="{{title}}" class="thread-list-threadName">{{title}}</a>
            <div class="thread-list-metaInfo">
				{{#link 'user_profile' id=author.id}}
					{{author.name}}
				{{/link}}
              <span>{{date created_at timeago=true}}</span>
            </div>
          </td>
          <td class="thread-list-commentCount">
            <span class="fa fa-commenting-o"></span>{{comment_count}}<span class="text-small">コメント</span>
          </td>
          <td class="thread-list-voteCount">
            <span class="fa fa-thumbs-o-up"></span>{{vote_count}}<span class="text-small">いいね！</span>
          </td>
        </tr>
        {{/each}}
      </tbody>
    </table>
{{pagination}}
</div>
